<div class="users form">
<p class="instructions"><?php echo nl2br($site_settings['registration_page_instructions']);?></p>
<?php echo $this->Form->create('User');?>
	<fieldset>
		<legend><?php __('Registration'); ?></legend>
	<?php
        $year = date('Y')-15;
		echo $this->Form->input('username',array('label'=>'Name'));		
		echo $this->Form->input('dob',array('minYear'=>1950,'maxYear'=>$year));
		echo $this->Form->input('address',array('type'=>'textarea'));
		echo $this->Form->input('mobile');
		echo $this->Form->input('email');
		echo $this->Form->input('degree');
		echo $this->Form->input('date_graduated',array('dateFormat'=>'MY','minYear'=>1950,'maxYear'=>date('Y')));
		echo $this->Form->input('university');
		echo $this->Form->input('work_experience');
		echo $this->Form->input('higher_degrees');		
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
</div>
